<?php

namespace App;

class Player
{
	public $id;
	public $nick;
	public $position; //pixels
	
	public function __construct($id)
	{
		$this->id = $id;
		$this->position['x'] = 20;
		$this->position['y'] = 20;
	}
	
	public function setPosition($x, $y)
	{
		$this->position['x'] = $x;
		$this->position['y'] = $y;
	}
	
	public function setNick($nick)
	{
		$this->nick = $nick;
	}
}

?>